package com.howells.time.base.http;

/**
 * Created by Administrator on 2016.4.6.
 */
public enum HttpURL {
    LoginApi("home/base/mobileLogin"),//移动端登录-
    ResigisterApi("home/base/mobileRegister"),//注册-
    VerifyCodeApi("home/base/getVerifyCode"),//验证码-
    SignOutApi("home/base/mobileLogout"),//退出-
    GetImageApi("home/user/logo"),//根据ID获取头像
    ChangePswApi("home/base/mobileChangepwd"),//修改密码-
    GetInfoApi("home/user/info"),//获取个人信息-
    ChangeInfoApi("home/user/info"),//修改个人信息-
    UploadApi("home/user/logo"),//上传头像
    ForgetPswApi("home/base/mobile/forgetPwd"),//忘记密码
    UploadVideoApi("home/blog/add"),//上传时文-
    GetModeApi("home/blogType/index"),//获取时文类型-
    UploadVideoPicApi("home/blog/mediaShowImage"),//上传缩略图-
    GetBlogApi("home/blog/index");
    private String code;
//    private String http="http://192.168.1.123:8080/";
 //   private String projectname="thinkssm-0.0.1-SNAPSHOT/";

    HttpURL(String code){
        this.code=code;
    }
    @Override
    public String toString()
    {
        return "http://"+ServerAddress.ServerIp.toString()+":"+ServerAddress.ServerPort.toString()+"/"+code+ServerAddress.ServerToken.toString();
    }

}
